// creating the canvas-element
canvas = document.createElement('canvas');
canvas.width = 500;
canvas.height = 250;
document.body.appendChild(canvas);

// initializing the stage
stage = new Stage(canvas);


Ticker.setFPS(30);
Ticker.addListener(tick);
function tick(e){
	stage.update();
}


